package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * Description: com.ruoyi.system.domain
 * User: hushibo
 * Date: 2021-12-06 13:13
 * Time: 13:13
 * Version: 1.0
 */
public class Attachment extends BaseEntity {

    private static final long serialVersionUID = 3615309737265727546L;

    /** 附件Id */
    private Long attachmentId;

    /** 唯一码 */
    @Excel(name = "唯一码")
    private String downloadUuid;

    /** 内容类型 */
    @Excel(name = "内容类型")
    private String contentType;

    /** 原文件名 */
    @Excel(name = "原文件名")
    private String originalFilename;

    /** 扩展名 */
    @Excel(name = "扩展名")
    private String extension;

    /** 地址 */
    @Excel(name = "地址")
    private String virtualPath;

    /** 附件类型 */
    @Excel(name = "附件类型")
    private Integer attachmentType;

    /** 新图片 */
    @Excel(name = "新图片")
    private Integer bNew;

    public void setAttachmentId(Long attachmentId)
    {
        this.attachmentId = attachmentId;
    }

    public Long getAttachmentId()
    {
        return attachmentId;
    }
    public void setDownloadUuid(String downloadUuid)
    {
        this.downloadUuid = downloadUuid;
    }

    public String getDownloadUuid()
    {
        return downloadUuid;
    }
    public void setContentType(String contentType)
    {
        this.contentType = contentType;
    }

    public String getContentType()
    {
        return contentType;
    }
    public void setOriginalFilename(String originalFilename)
    {
        this.originalFilename = originalFilename;
    }

    public String getOriginalFilename()
    {
        return originalFilename;
    }
    public void setExtension(String extension)
    {
        this.extension = extension;
    }

    public String getExtension()
    {
        return extension;
    }
    public void setVirtualPath(String virtualPath)
    {
        this.virtualPath = virtualPath;
    }

    public String getVirtualPath()
    {
        return virtualPath;
    }
    public void setAttachmentType(Integer attachmentType)
    {
        this.attachmentType = attachmentType;
    }

    public Integer getAttachmentType()
    {
        return attachmentType;
    }
    public void setbNew(Integer bNew)
    {
        this.bNew = bNew;
    }

    public Integer getbNew()
    {
        return bNew;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("attachmentId", getAttachmentId())
                .append("downloadUuid", getDownloadUuid())
                .append("contentType", getContentType())
                .append("originalFilename", getOriginalFilename())
                .append("extension", getExtension())
                .append("virtualPath", getVirtualPath())
                .append("attachmentType", getAttachmentType())
                .append("bNew", getbNew())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }

}
